define({ "api": [
  {
    "type": "post",
    "url": "/api/money/saveRecord",
    "title": "1、新增流水记录",
    "version": "0.0.1",
    "name": "money_saveRecord",
    "group": "money",
    "description": "<p>新增流水记录</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Integer",
            "optional": false,
            "field": "typeId",
            "description": "<p>类别ID         (类别ID与内容不能同时为空，必须有一项不为空)</p>"
          },
          {
            "group": "Parameter",
            "type": "String",
            "optional": false,
            "field": "content",
            "description": "<p>内容           (如果没有对应的类别，则添加该内容为新的类别并自动关联)</p>"
          },
          {
            "group": "Parameter",
            "type": "Double",
            "optional": false,
            "field": "money",
            "description": "<p>金额           (必填)</p>"
          },
          {
            "group": "Parameter",
            "type": "Integer",
            "optional": false,
            "field": "status",
            "description": "<p>类别，0=支出，1=收入，不填默认为0</p>"
          }
        ]
      }
    },
    "success": {
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"code\": 0,\n     \"msg\": \"\",\n     \"data\": {}\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/safe/controller/api/IndexApi.java",
    "groupTitle": "money",
    "sampleRequest": [
      {
        "url": "http://111.229.77.84/MoneyManager/api/money/saveRecord"
      }
    ]
  },
  {
    "type": "post",
    "url": "/api/money/recordList",
    "title": "2、根据类别ID，类型和时间查询流水记录列表",
    "version": "0.0.1",
    "name": "recordList",
    "group": "money",
    "description": "<p>根据类别ID，类型和时间查询流水记录列表</p>",
    "parameter": {
      "fields": {
        "Parameter": [
          {
            "group": "Parameter",
            "type": "Integer",
            "optional": false,
            "field": "typeId",
            "description": "<p>类别ID</p>"
          },
          {
            "group": "Parameter",
            "type": "Integer",
            "optional": false,
            "field": "status",
            "description": "<p>类型</p>"
          },
          {
            "group": "Parameter",
            "type": "Long",
            "optional": false,
            "field": "startTime",
            "description": "<p>起始时间</p>"
          },
          {
            "group": "Parameter",
            "type": "Long",
            "optional": false,
            "field": "endTime",
            "description": "<p>截止时间</p>"
          }
        ]
      }
    },
    "success": {
      "fields": {
        "Success 200": [
          {
            "group": "Success 200",
            "type": "Object",
            "optional": false,
            "field": "list",
            "description": ""
          },
          {
            "group": "Success 200",
            "type": "Integer",
            "optional": false,
            "field": "list.id",
            "description": "<p>流水记录ID</p>"
          },
          {
            "group": "Success 200",
            "type": "Object",
            "optional": false,
            "field": "list.type",
            "description": "<p>类别</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "list.type.id",
            "description": "<p>类别ID</p>"
          },
          {
            "group": "Success 200",
            "type": "String",
            "optional": false,
            "field": "list.type.name",
            "description": "<p>类别名称</p>"
          },
          {
            "group": "Success 200",
            "type": "Double",
            "optional": false,
            "field": "list.money",
            "description": "<p>金额</p>"
          },
          {
            "group": "Success 200",
            "type": "Integer",
            "optional": false,
            "field": "list.status",
            "description": "<p>类别，0=支出，1=收入</p>"
          },
          {
            "group": "Success 200",
            "type": "Long",
            "optional": false,
            "field": "list.createTime",
            "description": "<p>记录时间</p>"
          }
        ]
      },
      "examples": [
        {
          "title": "Success-Response:",
          "content": "HTTP/1.1 200 OK\n{\n     \"code\":0,\n     \"msg\":\"\",\n     \"data\":{[\n         {\n             \"id\" : 1,\n             \"type\" : {\n                 \"id\": 1,\n                 \"name\": \"吃饭\"\n             },\n             \"money\" : 11.00,\n             \"status\" : 0,\n             \"createTime\" : \"1530754884328\"\n         },\n         {\n             \"id\" : 2,\n             \"type\" : {\n                 \"id\": 2,\n                 \"name\": \"交通\"\n             },\n             \"money\" : 3.00,\n             \"status\" : 0,\n             \"createTime\" : \"1530754884328\"\n         }\n     ]\n}",
          "type": "json"
        }
      ]
    },
    "filename": "src/main/java/com/safe/controller/api/IndexApi.java",
    "groupTitle": "money",
    "sampleRequest": [
      {
        "url": "http://111.229.77.84/MoneyManager/api/money/recordList"
      }
    ]
  }
] });
